import { BasicColumn } from '@/components/Table';
import { h } from 'vue';
import { CaretDownFilled } from '@ant-design/icons-vue';
// 自定义过滤图标的方法
// 定义 filterIcon 方法
const filterIcon = (filtered, onFilter, column) => {
  // console.log(filtered, onFilter, column)
  return h(CaretDownFilled, {
    style: {
      color: filtered ? '#ABBACD' : undefined,
      fontSize: '15px'
    },
    // onClick: () => onFilter(null, column),
  });
};

const commonColumns: any = {
  name: {
    title: '姓名',
    dataIndex: 'name',
    key: 'name',
    fixed: 'left',
    formType: 'input',
    customFilterDropdown: true,
    filterIcon,
    width: 120
  },
  status: {
    title: '状态',
    dataIndex: 'statusName',
    key: 'applicationStages',
    otherFormType: 'search',
    formType: 'select',
    customFilterDropdown: true,
    onFilter: (value, record) =>
      record.name.toString().toLowerCase().includes(value.toLowerCase()),
    onFilterDropdownOpenChange: (visible) => {
      if (visible) {
      }
    },
    filterIcon,
  },
  qualificationType: {
    title: '学历',
    dataIndex: 'qualificationType',
    key: 'qualificationType',
    formType: 'select',
    customFilterDropdown: true,
    onFilter: (value, record) =>
      record.name.toString().toLowerCase().includes(value.toLowerCase()),
    onFilterDropdownOpenChange: (visible) => {
      if (visible) {
        console.log('789');
      }
    },
    filterIcon,
    width: 90
  },
  schoolName: {
    title: '学校',
    dataIndex: 'schoolName',
    key: 'schoolName',
    formType: 'input',
    customFilterDropdown: true,
    filterIcon,
    history: true
  },
  educationType: {
    title: '毕业时间',
    dataIndex: 'educationType',
    key: 'educationType',
    formType: 'select',
    align: "center",
    customFilterDropdown: true,
    onFilter: (value: string, record) => {
      console.log(record, 'record'),
        record.name.toString().toLowerCase().includes(value.toLowerCase())
    },
    onFilterDropdownOpenChange: (visible) => {
      if (visible) {
        console.log('789');
      }
    },
    filterIcon,
  },
  sex: {
    title: '性别',
    dataIndex: 'sex',
    key: 'sex',
    formType: 'select',
    customFilterDropdown: true,
    onFilter: (value, record) =>
      record.name.toString().toLowerCase().includes(value.toLowerCase()),
    onFilterDropdownOpenChange: (visible) => {
      if (visible) {
        console.log('789');
      }
    },
    filterIcon,
    width: 90
  },
  phone: {
    title: '手机号',
    dataIndex: 'phone',
    key: 'phone',
    formType: 'input',
    customFilterDropdown: true,
    filterIcon,
    width: 120
  },

  region: {
    title: '所属大区',
    dataIndex: 'region',
    key: 'region',
    formType: 'select',
    customFilterDropdown: true,
    onFilter: (value, record) =>
      record.name.toString().toLowerCase().includes(value.toLowerCase()),
    onFilterDropdownOpenChange: (visible) => {
      if (visible) {
        console.log('789');
      }
    },
    filterIcon,
    width: 100
  },
  deliverTime: {
    title: '投递时间',
    dataIndex: 'deliverTime',
    key: 'deliverTime',
    formType: 'time',
    field: 'es.create_time',
    timeParams: ['deliverBeginTime', 'deliverEndTime'],
    customFilterDropdown: true,
    filterIcon,
  },
  source: {
    title: '简历来源',
    dataIndex: 'source',
    key: 'source',
    formType: 'select',
    otherFormType: 'search',
    customFilterDropdown: true,
    onFilter: (value, record) =>
      record.name.toString().toLowerCase().includes(value.toLowerCase()),
    onFilterDropdownOpenChange: (visible) => {
      if (visible) {
        console.log('789');
      }
    },
    filterIcon,
  },
  recommendsName: {
    title: '内推人',
    dataIndex: 'recommendsName',
    key: 'isRecommends',
    formType: 'select',
    customFilterDropdown: false,
    filterIcon,
    width: 120
  },
  schoolDepartment: {
    title: '学院',
    dataIndex: 'schoolDepartment',
    key: 'schoolDepartment',
    formType: 'input',
    customFilterDropdown: true,
    filterIcon
  },
  interviewUserName: {
    title: '约面HR',
    dataIndex: 'interviewUserName',
    key: 'interviewUserId',
    formType: 'select',
    otherFormType: 'search',
    customFilterDropdown: true,
    onFilter: (value, record) =>
      record.name.toString().toLowerCase().includes(value.toLowerCase()),
    onFilterDropdownOpenChange: (visible) => {
      if (visible) {
        console.log('789');
      }
    },
    filterIcon,
    width: 100,
  },
  interviewTime: {
    title: '面试时间',
    dataIndex: 'interviewTime',
    key: 'interviewTime',
    formType: 'time',
    field: 'es.interview_time',
    timeParams: ['faceBeginTime', 'faceEndTime'],
    customFilterDropdown: true,
    filterIcon,
  },
  interviewer: {
    title: '面试官',
    dataIndex: 'interviewer',
    key: 'interviewOfficer',
    formType: 'select',
    otherFormType: 'search',
    customFilterDropdown: true,
    onFilter: (value, record) =>
      record.name.toString().toLowerCase().includes(value.toLowerCase()),
    onFilterDropdownOpenChange: (visible) => {
      if (visible) {
        console.log('789');
      }
    },
    filterIcon,
    width: 100,
  },
  interviewType: {
    title: '面试类型',
    dataIndex: 'interviewType',
    key: 'interviewType',
    formType: 'select',
    customFilterDropdown: true,
    onFilter: (value, record) =>
      record.name.toString().toLowerCase().includes(value.toLowerCase()),
    onFilterDropdownOpenChange: (visible) => {
      if (visible) {
        console.log('789');
      }
    },
    filterIcon,
    width: 100,
  },
  operationUser: {
    title: '操作人',
    dataIndex: 'operator',
    key: 'operators',
    formType: 'select',
    otherFormType: 'sort',
    field: 'pr.operator',
    customFilterDropdown: true,
    onFilter: (value, record) =>
      record.name.toString().toLowerCase().includes(value.toLowerCase()),
    onFilterDropdownOpenChange: (visible) => {
      if (visible) {
        console.log('789');
      }
    },
    filterIcon,
    width: 100,
  },
  operationTime: {
    title: '操作时间',
    dataIndex: 'operatorTime',
    key: 'operationTime',
    formType: 'time',
    field: 'pr.operator_time',
    timeParams: ['operatorBeginTime', 'operatorEndTime'],
    customFilterDropdown: true,
    filterIcon
  },
  action: {
    title: '操作',
    dataIndex: 'action',
    key: 'action',
    fixed: 'left',
    width: 140
  },
  expirationTime: {
    title: '过期时间',
    dataIndex: 'expirationTime',
    key: 'expirationTime',
    formType: 'time',
    field: 'pr.create_time',
    timeParams: ['expireBeginTime', 'expireEndTime'],
    customFilterDropdown: true,
    filterIcon
  },
  preserveUserName: {
    title: '维护HR',
    dataIndex: 'preserveUserName',
    key: 'preserveUserId',
    formType: 'select',
    otherFormType: 'search',
    customFilterDropdown: true,
    onFilter: (value, record) =>
      record.name.toString().toLowerCase().includes(value.toLowerCase()),
    onFilterDropdownOpenChange: (visible) => {
      if (visible) {
        console.log('789');
      }
    },
    filterIcon,
    width: 100
  },
  trainingNumber: {
    title: '培训期数',
    dataIndex: 'trainingNumber',
    key: 'trainingNumber',
    formType: 'select',
    otherFormType: 'sort',
    align: "center",
    field: 'num.training_number',
    customFilterDropdown: true,
    onFilter: (value, record) =>
      record.name.toString().toLowerCase().includes(value.toLowerCase()),
    onFilterDropdownOpenChange: (visible) => {
      if (visible) {
        console.log('789');
      }
    },
    filterIcon,
  },
  trainingTime: {
    title: '培训时间',
    dataIndex: 'trainingTime',
    key: 'trainingTime',
    formType: 'time',
    field: 'num.examine_start_time',
    timeParams: ['trainBeginTime', 'trainEndTime'],
    customFilterDropdown: true,
    filterIcon
  },
  examineTime: {
    title: '考核时间',
    dataIndex: 'examineTime',
    key: 'examineTime',
    formType: 'time',
    timeParams: ['examBeginTime', 'examEndTime'],
    customFilterDropdown: true,
    filterIcon
  },
  examineUser: {
    title: '考核官',
    dataIndex: 'examineUser',
    key: 'examers',
    formType: 'select',
    otherFormType: 'search',
    customFilterDropdown: true,
    onFilter: (value, record) =>
      record.name.toString().toLowerCase().includes(value.toLowerCase()),
    onFilterDropdownOpenChange: (visible) => {
      if (visible) {
        console.log('789');
      }
    },
    filterIcon,
  },
  trainingUser: {
    title: '培训官',
    dataIndex: 'trainingUser',
    key: 'trainers',
    formType: 'select',
    otherFormType: 'search',
    customFilterDropdown: true,
    onFilter: (value, record) =>
      record.name.toString().toLowerCase().includes(value.toLowerCase()),
    onFilterDropdownOpenChange: (visible) => {
      if (visible) {
        console.log('789');
      }
    },
    filterIcon,
  },
  entryLocation: {
    title: '录取分校',
    dataIndex: 'entryLocation',
    key: 'entryLocation',
    formType: 'select',
    otherFormType: 'search',
    customFilterDropdown: true,
    onFilter: (value, record) =>
      record.name.toString().toLowerCase().includes(value.toLowerCase()),
    onFilterDropdownOpenChange: (visible) => {
      if (visible) {
        console.log('789');
      }
    },
    filterIcon,
  },
  entrySubject: {
    title: '录取科目',
    dataIndex: 'entrySubject',
    key: 'entrySubject',
    formType: 'select',
    otherFormType: 'search',
    customFilterDropdown: true,
    onFilter: (value, record) =>
      record.name.toString().toLowerCase().includes(value.toLowerCase()),
    onFilterDropdownOpenChange: (visible) => {
      if (visible) {
        console.log('789');
      }
    },
    filterIcon,
  },
  entryGrade: {
    title: '录取年级',
    dataIndex: 'entryGrade',
    key: 'entryGrade',
    formType: 'select',
    otherFormType: 'search',
    customFilterDropdown: true,
    onFilter: (value, record) =>
      record.name.toString().toLowerCase().includes(value.toLowerCase()),
    onFilterDropdownOpenChange: (visible) => {
      if (visible) {
        console.log('789');
      }
    },
    filterIcon,
  },
  entryTime: {
    title: '预计到岗时间',
    dataIndex: 'limitTime',
    key: 'entryTime',
    formType: 'time',
    field: 'es.on_duty_time',
    timeParams: ['limitBeginTime', 'limitEndTime'],
    customFilterDropdown: true,
    filterIcon
  },
  entryTeacher: {
    title: '导师',
    otherFormType: 'search',
    dataIndex: 'entryTeacher',
    key: 'entryTeacher',
    formType: 'select',
    customFilterDropdown: true,
    onFilter: (value, record) =>
      record.name.toString().toLowerCase().includes(value.toLowerCase()),
    onFilterDropdownOpenChange: (visible) => {
      if (visible) {
        console.log('789');
      }
    },
    filterIcon,
  },
}

export const otherColumns: any = {
  ypall: [
    commonColumns.name,
    commonColumns.status,
    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    commonColumns.interviewUserName,
    commonColumns.interviewer,
    commonColumns.region, // 所属大区
    commonColumns.deliverTime, //投递时间
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  jldsx: [
    commonColumns.name,
    commonColumns.action,
    commonColumns.status,
    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    commonColumns.region, // 所属大区
    commonColumns.deliverTime, //投递时间
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  jltt: [
    commonColumns.name,
    commonColumns.status,
    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    commonColumns.operationUser, // 操作人
    commonColumns.operationTime,
    commonColumns.region, // 所属大区
    commonColumns.deliverTime, //投递时间
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  msdym: [
    commonColumns.name,
    commonColumns.action,
    commonColumns.status,
    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    commonColumns.interviewUserName, // 约面HR
    commonColumns.region, // 所属大区
    commonColumns.deliverTime, //投递时间
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  msdms: [
    commonColumns.name,
    commonColumns.action,
    commonColumns.status,
    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院 
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    commonColumns.interviewer, // 面试官
    commonColumns.interviewTime, //面试时间
    commonColumns.interviewType, // 面试类型
    commonColumns.region, // 所属大区
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  mstt: [
    commonColumns.name,
    commonColumns.status,
    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    commonColumns.interviewer, // 面试官
    commonColumns.interviewTime, //面试时间
    commonColumns.interviewType, // 面试类型
    commonColumns.region, // 所属大区
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  msfq: [
    commonColumns.name,
    commonColumns.status,
    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    commonColumns.operationUser, // 操作人
    commonColumns.operationTime, // 操作时间
    commonColumns.region, // 所属大区
    commonColumns.source, // 简历来源
    commonColumns.recommendsName //内推人
  ],
  pxdy: [
    commonColumns.name,
    commonColumns.action,
    commonColumns.status,
    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    commonColumns.preserveUserName, // 维护HR
    commonColumns.expirationTime, //过期时间
    commonColumns.region, // 所属大区
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  pxdp: [
    commonColumns.name,
    commonColumns.action,
    commonColumns.status,
    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    commonColumns.trainingNumber, //培训期数
    commonColumns.trainingTime, //培训时间
    commonColumns.preserveUserName, // 维护HR
    commonColumns.region, // 所属大区
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  pxpxz: [
    commonColumns.name,
    commonColumns.status,
    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    commonColumns.trainingNumber, //培训期数
    commonColumns.trainingTime, //培训时间
    commonColumns.preserveUserName, // 维护HR
    commonColumns.region, // 所属大区
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  pxdlq: [
    commonColumns.name,
    commonColumns.status,
    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    commonColumns.trainingNumber, //培训期数
    commonColumns.examineTime, //考核时间
    commonColumns.examineUser, //考核官
    commonColumns.trainingUser, //培训官
    commonColumns.preserveUserName, // 维护HR
    commonColumns.region, // 所属大区
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  pxtt: [
    commonColumns.name,
    commonColumns.status,

    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    commonColumns.trainingNumber, //培训期数
    commonColumns.preserveUserName, // 维护HR
    commonColumns.operationUser, // 操作人
    commonColumns.operationTime, // 操作时间
    commonColumns.region, // 所属大区
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  pxfq: [
    commonColumns.name,
    commonColumns.status,
    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    commonColumns.preserveUserName, // 维护HR
    commonColumns.operationUser, // 操作人
    commonColumns.operationTime, // 操作时间
    commonColumns.region, // 所属大区
    // commonColumns.trainingNumber, //培训期数
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  qydqyy: [
    commonColumns.name,
    commonColumns.status,
    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    commonColumns.entryLocation, //录取分校
    commonColumns.entrySubject, //录取科目
    commonColumns.entryGrade, //录取年级
    commonColumns.entryTime, // 预计到岗时间
    {
      ...commonColumns.expirationTime,
      field: 'es.agency_limit_time'
    }, // 过期时间
    commonColumns.preserveUserName, // 维护HR
    commonColumns.region, // 所属大区
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  qydqsf: [
    commonColumns.name,
    commonColumns.action,
    commonColumns.status,
    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    commonColumns.entryLocation, //录取分校
    commonColumns.entrySubject, //录取科目
    commonColumns.entryGrade, //录取年级
    commonColumns.entryTime, // 预计到岗时间
    commonColumns.preserveUserName, // 维护HR
    commonColumns.region, // 所属大区
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  qyfq: [
    commonColumns.name,
    commonColumns.status,
    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    commonColumns.entryLocation, //录取分校
    commonColumns.entrySubject, //录取科目
    commonColumns.entryGrade, //录取年级
    commonColumns.entryTime, // 预计到岗时间
    commonColumns.operationUser, // 操作人
    commonColumns.operationTime, // 操作时间
    commonColumns.preserveUserName, // 维护HR
    commonColumns.region, // 所属大区
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  rzdrz: [
    commonColumns.name,
    commonColumns.action,
    commonColumns.status,
    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    commonColumns.entryLocation, //录取分校
    commonColumns.entrySubject, //录取科目
    commonColumns.entryGrade, //录取年级
    commonColumns.entryTime, // 预计到岗时间
    commonColumns.preserveUserName, // 维护HR
    commonColumns.region, // 所属大区
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  rzsxz: [
    commonColumns.name,
    commonColumns.action,
    commonColumns.status,

    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    {
      ...commonColumns.entryLocation,
      title: '入职分校'
    },
    {
      ...commonColumns.entrySubject,
      title: '入职科目'
    },
    {
      ...commonColumns.entryGrade,
      title: '入职年级'
    },
    commonColumns.entryTeacher, // 导师
    commonColumns.preserveUserName, // 维护HR
    commonColumns.region, // 所属大区
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  rzsyq: [
    commonColumns.name,
    commonColumns.action,
    commonColumns.status,
    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    {
      ...commonColumns.entryLocation,
      title: '入职分校'
    },
    {
      ...commonColumns.entrySubject,
      title: '入职科目'
    },
    {
      ...commonColumns.entryGrade,
      title: '入职年级'
    },
    commonColumns.entryTeacher, // 导师
    commonColumns.preserveUserName, // 维护HR
    commonColumns.region, // 所属大区
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  rzyzz: [
    commonColumns.name,
    commonColumns.status,

    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    {
      ...commonColumns.entryLocation,
      title: '入职分校'
    },
    {
      ...commonColumns.entrySubject,
      title: '入职科目'
    },
    {
      ...commonColumns.entryGrade,
      title: '入职年级'
    },
    // commonColumns.entryTeacher, // 导师
    commonColumns.preserveUserName, // 维护HR
    commonColumns.region, // 所属大区
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  rzjy: [
    commonColumns.name,
    commonColumns.status,


    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    commonColumns.entryLocation, //录取分校
    commonColumns.entrySubject, //录取科目
    commonColumns.entryGrade, //录取年级
    commonColumns.preserveUserName, // 维护HR
    commonColumns.operationUser, // 操作人
    commonColumns.operationTime, // 操作时间
    commonColumns.region, // 所属大区
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  rzqt: [
    commonColumns.name,
    commonColumns.status,
    // 毕业时间
    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,

    commonColumns.sex,
    commonColumns.phone,
    {
      ...commonColumns.entryLocation,
      title: '入职分校'
    },
    {
      ...commonColumns.entrySubject,
      title: '入职科目'
    },
    {
      ...commonColumns.entryGrade,
      title: '入职年级'
    },
    commonColumns.entryTeacher, // 导师
    commonColumns.preserveUserName, // 维护HR
    commonColumns.operationUser, // 操作人
    commonColumns.operationTime, // 操作时间
    commonColumns.region, // 所属大区
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
  rzlz: [
    commonColumns.name,
    commonColumns.status,
    commonColumns.qualificationType, // 学历
    commonColumns.schoolName, // 学校
    commonColumns.schoolDepartment, //学院
    commonColumns.educationType,  // 毕业时间
    commonColumns.sex,
    commonColumns.phone,
    {
      ...commonColumns.entryLocation,
      title: '入职分校'
    },
    {
      ...commonColumns.entrySubject,
      title: '入职科目'
    },
    {
      ...commonColumns.entryGrade,
      title: '入职年级'
    },
    commonColumns.entryTeacher, // 导师
    commonColumns.preserveUserName, // 维护HR
    commonColumns.operationUser, // 操作人
    commonColumns.operationTime, // 操作时间
    commonColumns.region, // 所属大区
    commonColumns.source, //简历来源
    commonColumns.recommendsName //内推人
  ],
}

// 导航状态筛选
export const navStatusType: any = {
  ypall: {
    "type": "全部"
  },
  jldsx: {
    "type": "简历环节",
    "process": "待筛选"
  },
  jltt: {
    "type": "简历环节",
    "process": "淘汰"
  },
  msdym: {
    "type": "面试环节",
    "process": "待约面"
  },
  msdms: {
    "type": "面试环节",
    "process": "待面试"
  },
  mstt: {
    "type": "面试环节",
    "process": "淘汰"
  },
  msfq: {
    "type": "面试环节",
    "process": "放弃"
  },
  pxdy: {
    "type": "培训环节",
    "process": "待约"
  },
  pxdp: {
    "type": "培训环节",
    "process": "待培"
  },
  pxpxz: {
    "type": "培训环节",
    "process": "培训中"
  },
  pxdlq: {
    "type": "培训环节",
    "process": "待录取"
  },
  pxtt: {
    "type": "培训环节",
    "process": "淘汰"
  },
  pxfq: {
    "type": "培训环节",
    "process": "放弃"
  },
  qydqyy: {
    "type": "签约环节",
    "process": "待签应约"
  },
  qydqsf: {
    "type": "签约环节",
    "process": "待签三方"
  },
  qyfq: {
    "type": "签约环节",
    "process": "放弃"
  },
  rzdrz: {
    "type": "入职环节",
    "process": "待入职"
  },
  rzsxz: {
    "type": "入职环节",
    "process": "实习中"
  },
  rzsyq: {
    "type": "入职环节",
    "process": "试用期"
  },
  rzyzz: {
    "type": "入职环节",
    "process": "已转正"
  },
  rzjy: {
    "type": "入职环节",
    "process": "解约"
  },
  rzqt: {
    "type": "入职环节",
    "process": "劝退"
  },
  rzlz: {
    "type": "入职环节",
    "process": "离职"
  },
}

export const selectOptions: any = {
  name: {
    placeholder: '姓名',
    inputValue: ''
  },
  phone: {
    placeholder: '手机号',
    inputValue: ''
  },
  schoolName: {
    placeholder: '学校',
    schoolName: ''
  },
  schoolDepartment: {
    placeholder: '学院',
    schoolName: ''
  },
  deliverTime: {
    placeholder: '投递时间',
    inputValue: '',
    sort: ''
  },
  operationTime: {
    placeholder: '操作时间',
    inputValue: ''
  },
  isRecommends: {
    option: [
      {
        value: '0',
        label: '是'
      },
      {
        value: '1',
        label: '否'
      }]
  },
  applicationStages: {
    requestApi: 'tabulationStatusList',
    placeholder: '状态',
    option: []
  },
  educationType: {
    placeholder: '毕业类型',
    option: [
      {
        value: '0',
        label: '应届生'
      },
      {
        value: '1',
        label: '往届生'
      },
    ]
  },
  qualificationType: {
    requestType: 'EDUCATION',
    requestApi: 'selectCommonConfigDetail',
    placeholder: '学历',
    option: []
  },
  sex: {
    placeholder: '性别',
    option: [
      {
        value: '0',
        label: '男'
      },
      {
        value: '1',
        label: '女'
      },
    ]
  },
  interpolate: {
    placeholder: '内推情况',
    option: [
      {
        value: '0',
        label: '是'
      },
      {
        value: '1',
        label: '否'
      },
    ]
  },
  region: {
    requestType: 'DEPT',
    requestApi: 'selectCommonConfigDetail',
    placeholder: '所属大区',
    option: []
  },
  interviewUserId: {
    requestType: 'HR',
    requestApi: 'selectUserByRole',
    placeholder: '约面HR',
    option: []
  },
  preserveUserId: {
    requestType: 'HR',
    requestApi: 'selectUserByRole',
    placeholder: '维护HR',
    option: []
  },
  interviewOfficer: {
    requestType: 'INTERVIEW',
    requestApi: 'selectUserByRole',
    placeholder: '面试官',
    option: []
  },
  examers: {
    requestType: 'ASSESS',
    requestApi: 'selectUserByRole',
    placeholder: '考核官',
    option: []
  },
  trainers: {
    requestType: 'TRAINING',
    requestApi: 'selectUserByRole',
    placeholder: '培训官',
    option: []
  },
  operators: {
    requestType: 'ALL',
    requestApi: 'selectUserByRole',
    placeholder: '操作人',
    option: []
  },
  labelUpdateOperator: {
    requestType: 'ALL',
    requestApi: 'selectUserByRole',
    placeholder: '操作人',
    option: []
  },
  interviewType: {
    placeholder: '面试类型',
    option: [
      {
        value: '线上面试',
        label: '线上面试'
      },
      {
        value: '线下面试',
        label: '线下面试'
      },
    ]
  },
  trainingNumber: {
    requestApi: 'tabulationList',
    placeholder: '培训期数',
    option: []
  },
  entryLocation: {
    requestType: '1',
    requestApi: 'selectCommonConfig',
    placeholder: '录取分校',
    option: []
  },
  entrySubject: {
    requestType: '2',
    requestApi: 'selectCommonConfig',
    placeholder: '录取科目',
    option: []
  },
  entryGrade: {
    requestType: '3',
    requestApi: 'selectCommonConfig',
    placeholder: '录取年级',
    option: []
  },
  entryTeacher: {
    requestType: 'MENTOR',
    requestApi: 'selectUserByRole',
    placeholder: '导师',
    option: []
  },
  source: {
    placeholder: '简历来源',
    option: [
      {
        value: '就业信息网',
        label: '就业信息网'
      },
      {
        value: '就业信息群',
        label: '就业信息群'
      },
      // {
      //   value: '学校微信公众号',
      //   label: '学校微信公众号'
      // },{
      //   value: '方田公众号',
      //   label: '方田公众号'
      // },
      {
        value: '老师推荐',
        label: '老师推荐'
      }, {
        value: '同学推荐',
        label: '同学推荐'
      }, {
        value: '内部推荐',
        label: '内部推荐'
      }, {
        value: '其他',
        label: '其他'
      }
    ]
  },
}




